package com.pty.demo.behaviour.interpreter;

/**
 * @author pengty
 * @date 2020/3/16
 */
public class AddOperationExpression extends AbstractOperationExpression {

    public AddOperationExpression(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public int interpreter() {
        return this.left.interpreter() + this.right.interpreter();
    }
}
